package school.xauat.offershow.serice;

import school.xauat.offershow.pojo.Entry;
import school.xauat.offershow.pojo.dto.EntryResponseType;

import java.util.List;

public interface EntryService {

    List<EntryResponseType> list(Integer pageId, String order);

    boolean add(Entry entry);

    EntryResponseType getById(Integer user_id, Integer entry_id);

    void update(Entry entry);

    List<EntryResponseType> searchByCol(String col, String value, String order, Integer pageId);


    List<EntryResponseType> searchByParams(Integer business_id, Integer education_id, Integer pageId, String order);

    List<EntryResponseType> searchByUserId(int userId, String order);

    int addStars(Integer user_id, Integer entry_id);

    List<EntryResponseType> selectByUserId(int user_id, String order);

    int cancelStars(Integer user_id, Integer entry_id);
}
